package com.gm.dao.customer;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;
import com.gm.model.po.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ICustomerDao {

    int deleteByPrimaryKey(Integer id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer id);

    List<Customer> selectByCode(String code);

    List<Customer> selectByIdCard(String idCard);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);

    PageList<Customer> getCustomerList(@Param("pageBounds")PageBounds pageBounds);
}